<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    // window.onload=function(){
    //     let btn=document.querySelector('button');
    //     console.log(btn);
    //     btn.addEventListener('click',function () {
    //         alert('我起了，一枪秒了，有什么好说的~');
    //     })
    // }
    window.addEventListener('load',function(){
        console.log('wwindow  load');
    });
    document.addEventListener('DOMContentLoaded',function(){
        console.log('DOM DOMContentLoaded');
    })
</script>
<body>
    <button>点击</button>
</body>
</html>